package main

import (
	"flag"
	"os"
	"strings"
)

var newLine = flag.Bool("n", false, "print newline")

func main() {
	flag.PrintDefaults()
	flag.Parse()
	var s = ""
	parameter := make([]string, flag.NArg())
	for i := 0; i < flag.NArg(); i++ {
		parameter[i] = flag.Arg(i)
	}
	if *newLine {
		s = strings.Join(parameter, "\n")
	} else {
		s = strings.Join(parameter, " ")
	}
	os.Stdout.WriteString(s)
}
